<%@ page language="java" import="java.util.*,com.funning.bean.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'indexMain.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	
  </head>
  
  <body bgcolor="#FAFBE7">
  	<center>
  	<table width=700 border=0 cellpadding=0 cellspacing=0>                                                                                                          
 <tr><td>                                                                                                                                                                                         
  <div id=www_qpsh_com style=overflow:hidden;height:120px;width:700px;color:#ff0000><table align=left cellpadding=0 cellspace=0 border=0><tr><td id=www_qpsh_com1 valign=top>
  <table border=0 cellpadding=0 cellspacing=0>
  <tr><td><a  target=_blank><img border=0 src="<%=basePath%>images/Food (1).jpg" width=150 height=100 hspace=22></a><br><center><b>四季豆炒肉</b></center></td>
  <td width=30></td>
  <td><a  target=_blank><img border=0 src="<%=basePath%>images/Food (2).jpg" width=150 height=100  hspace=22></a><br><center><b>剁椒鱼头</b></center></td>
  <td width=30></td>
  <td><a target=_blank><img border=0 src="<%=basePath%>images/Food (16).jpg" width=150 height=100  hspace=22></a><br><center><b>玉米排骨</b></center></td>
  <td><a target=_blank><img border=0 src="<%=basePath%>images/Food (10).jpg" width=150 height=100  hspace=22></a><br><center><b>蒜苗炒肉</b></center></td>
  <td width=30></td>
  <td><a  target=_blank><img border=0 src="<%=basePath%>images/Food (13).jpg" width=150 height=100  hspace=22></a><br><center><b>土豆丝</b></center></td>
  <td><a  target=_blank><img border=0 src="<%=basePath%>images/Food (22).jpg" width=150 height=100  hspace=22></a><br><center><b>清香米饭</b></center></td>
  </tr>
  </table>
 </td><td id=www_qpsh_com2 valign=top></td></tr></table></div>
  <script>
  var speed=10//速度数值越大速度越慢
  www_qpsh_com2.innerHTML=www_qpsh_com1.innerHTML
  function Marquee(){
  if(www_qpsh_com2.offsetWidth-www_qpsh_com.scrollLeft<=0)
  www_qpsh_com.scrollLeft-=www_qpsh_com1.offsetWidth
  else{
  www_qpsh_com.scrollLeft++
  }
  }
  var MyMar=setInterval(Marquee,speed)
  www_qpsh_com.onmouseover=function() {clearInterval(MyMar)}
  www_qpsh_com.onmouseout=function() {MyMar=setInterval(Marquee,speed)}
  </script>
 </td></tr>                                                                                                                                                                                                                            
 </table>
 		
  	<div style="width: 400px; background-image: url('<%=basePath%>images/funningbg02.bmp');background-repeat : repeat-y;text-transform: capitalize; " >

  	<table bordercolor="#CA0868" border="0">
				<tr align="center">
				
					<td>
						<font color="#CE2448" size=4>最新笑话</font>
					</td>
  		</tr>
  		<%
  			List<OfFuning> funning=(List<OfFuning>)request.getAttribute("NewofFuning");
  			for(int i=0;i<funning.size();i++){
  			OfFuning funing=funning.get(i);
  		 %>
  		<tr>
  		
  		<td >
  		<font > <%=funing.getOfDesc() %></font>
  		</td>
  		
  		</tr>
  		<%} %>
  		
  	</table>
  	
  	</div>
 
  	
  	
  	
   </center>
  </body>
</html>
